<template>
	<view >
		<view class="status_bar"></view>		
		<view class="container" >
			<view class="user-img" @click="userDetails">
				<img :src="$imgUrl('img/userHead.jpeg')" alt="">
			</view>
			<view class="user-name">
				{{$utils.eliminate(dlrName,'暂未录入名字')}}
			</view>
		</view>
	</view>	
</template>

<script>
	import storage from '@/utils/Stroage.js'
	export default {
		name:"lt-haed",	
		computed:{
			dlrName(){
				return this.$store.getters.userInfo['PARENT_DLR_NAME']
			}			
		},
		methods:{
			userDetails(){
				// console.log('toDetails')
				uni.navigateTo({
					url:'/pages/system/userDetails'
				})
			}
		}
	}
</script>

<style lang="scss">
.status_bar{
	height: var(--status-bar-height);
	width: 100%;
	background-color: $bg-color;
}
.container{
	width: 100vw;
	height:120upx;
	background: $bg-color;
	display: flex;
	flex-direction: row;
	justify-content: left;
	padding-left: 32upx;
	align-items: center;
	z-index: 1000;
	.user-img{
		width: 80upx;
		height: 80upx;
		border-radius: 50%;
		background: #000;
		overflow: hidden;
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		img{
			width: 100%;
			height: 100%;
		}
	}
	.user-name{
		width: 50vw;
		// background-color: #000;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;		
		margin-left: 24upx;
		font-size: 42upx;
		color: #fff;
	}
}
</style>
